From: Aaron Schulz Date: Wed, 15 Jun 2016 00:48:04 +0000 (-0700) Subject: Use a low TTL for parser output when special pages are included X-Git-Tag: 1.31.0-rc.0~6609 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=879ebfb18a0b34d28dad83b6067039149c8254cd;p=lhc%2Fweb%2Fwiklou.git Use a low TTL for parser output when special pages are included Previously, no TTL at all was used, which is quite harsh on performance and had downstream effects like disabling edit stashing for affected pages. Bug: T136678 Change-Id: I2462057aa189cfb05fe65d0b3c081a9fd10066a2 --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 63a297b2d7..b563613533 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3151,7 +3151,8 @@ class Parser { $this->mOutput->addOutputPageMetadata( $context->getOutput() ); $found = true; $isHTML = true; - $this->disableCache(); + // Severely reduce cache time to keep content dynamic + $this->mOutput->updateCacheExpiry( 30 ); } } elseif ( MWNamespace::isNonincludable( $title->getNamespace() ) ) { $found = false; # access denied